//
//  KLArithmeticTextField.m
//  KLCurrency
//
//  Created by apple on 2017/12/2.
//  Copyright © 2017年 bonc. All rights reserved.
//

#import "KLArithmeticTextField.h"

@implementation KLArithmeticTextField

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super initWithCoder:aDecoder]) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    [[UITextField appearance] setTintColor:UIColorFromRGB(0x2CC17B)];
    //禁止系统弹出键盘
    self.inputView = [UIView new];
}

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    //禁止点击键盘触发first responder响应
    return nil;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
